package top.dancun.easstudent.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * 
 * 
 * @author dancun
 * @email message@dancun.top
 * @date 2022-09-17 16:31:58
 */
@Data
@TableName("class")
public class ClassEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 自增主键
	 */
	@TableId
	private Integer classId;
	/**
	 * 班级代码
	 */
	private String classCode;
	/**
	 * 班级负责人/teacherId
	 */
	private String classLeader;
	/**
	 * 入学年份
	 */
	private String startYear;
	/**
	 * 学制
	 */
	private Integer studentLength;
	/**
	 * 专业
	 */
	private Integer majorId;

	/**
	 * 专业
	 */
	@TableField(exist = false)
	private MajorEntity major;

	/**
	 * 学院
	 */
	@TableField(exist = false)
	private DeptEntity dept;

}
